package com.slx.longest_valid_parentheses;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        System.out.println(solution.longestValidParentheses("(()"));
        System.out.println(solution.longestValidParentheses(")()())"));
        System.out.println(solution.longestValidParentheses(")()())()"));
        System.out.println(solution.longestValidParentheses(")()(()()))()()()"));
    }
}
